<!-- 用户编辑模态框 -->
<div class="modal-body">
    <form class="form-horizontal" method="post" name="form_submit" id="form_submit"
          action="${request.contextPath}/soa/baseinfo/customer/datas/save">
        <input type="hidden" id="id" name="id" value="${model.id!}">
        <div class="box-body">


            <div class="form-group">
                <label for="personName" class="col-sm-3 control-label">姓名</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="personName" name="personName"
                           value="${model.personName!}">
                </div>
            </div>
            <div class="form-group">
                <label for="personSex" class="col-sm-3 control-label">性别</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="personSex" name="personSex"
                           value="${model.personSex!}">
                </div>
            </div>
            <div class="form-group">
                <label for="personBirth" class="col-sm-3 control-label">出生日期</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="personBirth" name="personBirth"
                           value="${model.personBirth!}">
                </div>
            </div>
            <div class="form-group">
                <label for="personAddress" class="col-sm-3 control-label">住所</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="personAddress" name="personAddress"
                           value="${model.personAddress!}">
                </div>
            </div>
            <div class="form-group">
                <label for="personMaritalStatus" class="col-sm-3 control-label">婚姻状况</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="personMaritalStatus" name="personMaritalStatus"
                           value="${model.personMaritalStatus!}">
                </div>
            </div>
            <div class="form-group">
                <label for="personCensus" class="col-sm-3 control-label">户籍</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="personCensus" name="personCensus"
                           value="${model.personCensus!}">
                </div>
            </div>
            <div class="form-group">
                <label for="persionIdCard" class="col-sm-3 control-label">身份证号</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="persionIdCard" name="persionIdCard"
                           value="${model.persionIdCard!}">
                </div>
            </div>
            <div class="form-group">
                <label for="personPhone" class="col-sm-3 control-label">手机号码</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="personPhone" name="personPhone"
                           value="${model.personPhone!}">
                </div>
            </div>
            <div class="form-group">
                <label for="personSpouse" class="col-sm-3 control-label">配偶姓名</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="personSpouse" name="personSpouse"
                           value="${model.personSpouse!}">
                </div>
            </div>
            <div class="form-group">
                <label for="personSpouseSex" class="col-sm-3 control-label">配偶性别</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="personSpouseSex" name="personSpouseSex"
                           value="${model.personSpouseSex!}">
                </div>
            </div>
            <div class="form-group">
                <label for="personSpouseIdCard" class="col-sm-3 control-label">配偶身份证号</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="personSpouseIdCard" name="personSpouseIdCard"
                           value="${model.personSpouseIdCard!}">
                </div>
            </div>
            <div class="form-group">
                <label for="personSpouseBirth" class="col-sm-3 control-label">配偶出生年月</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="personSpouseBirth" name="personSpouseBirth"
                           value="${model.personSpouseBirth!}">
                </div>
            </div>
            <div class="form-group">
                <label for="personSpouseCensus" class="col-sm-3 control-label">配偶户籍</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="personSpouseCensus" name="personSpouseCensus"
                           value="${model.personSpouseCensus!}">
                </div>
            </div>
            <div class="form-group">
                <label for="personSpousePhone" class="col-sm-3 control-label">配偶手机号</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="personSpousePhone" name="personSpousePhone"
                           value="${model.personSpousePhone!}">
                </div>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript">
    //表单校验及提交事件
    $('#form_submit').bootstrapValidator({
        message: 'This value is not valid',
        feedbackIcons: {
            valid: 'glyphicon glyphicon-ok',
            invalid: 'glyphicon glyphicon-remove',
            validating: 'glyphicon glyphicon-refresh'
        },
        fields: {
            personName: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
            , personSex: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
            , personBirth: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
            ,personAddress: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
            , personMaritalStatus: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
            , personCensus: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
            , persionIdCard: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
            , personPhone: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
            , personSpouse: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
            , personSpouseSex: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
            , personSpouseIdCard: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
            , personSpouseBirth: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
            , personSpouseCensus: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }
            , personSpousePhone: {
                message: 'this is not valid',
                validators: {
                    notEmpty: {
                        message: '不能为空！'
                    }
                }
            }

        }
    });
</script>
